package com.erp.gather.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.lang.Dict;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.erp.gather.domain.ErpCollectProductUploadTestTask;
import com.erp.gather.mapper.ErpCollectProductUploadTestTaskMapper;
import com.erp.gather.service.IErpCollectProductUploadTestService;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.Aliexpress;
import com.ruoyi.gather.api.domain.ErpCollectProduct;
import com.ruoyi.gather.api.domain.ErpCollectProductExpand;
import com.ruoyi.gather.api.domain.ErpCollectProductSku;
import com.ruoyi.gather.api.domain.dto.ComputeFreightDto;
import com.ruoyi.shop.api.domain.ErpSellerStoreEmpower;
import com.ruoyi.shop.api.domain.ErpSellerStoreEmpowerExtend;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.map.LinkedMap;
import org.apache.logging.log4j.util.Strings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;

/**
 * 采集商品;参考AE-商品：发布产品信息（aliexpress.postproduct.redefining.postaeproduct）Service业务层处理
 *
 * @author erp
 * @date 2023-03-07
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class ErpCollectProductUploadTestServiceImpl implements IErpCollectProductUploadTestService {
    @Autowired
    RestTemplate restTemplate;
    private final AliexpressCategoryServiceImpl aliexpressCategoryServiceImpl;

    private final AliexpressCategoryServiceImpl aliexpressCategoryService;

    private final ErpCollectProductUploadTestTaskMapper erpCollectProductUploadTestTaskMapper;


}
